<template>
  <div class="app-container">
    <el-card>
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="打印模板" name="first" :lazy="true">
          <print />
        </el-tab-pane>
        <el-tab-pane label="货位模板" name="secord" :lazy="true">
          <locationPrint />
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script>
  import print from './printList/print.vue'
  import locationPrint from './locationList/locationPrint.vue'
  export default {
    data() {
      return {
        activeName: 'first'
      }
    },
    components: {
        print,
        locationPrint
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    }
  }
</script>

<style scoped>
  .app-container {
    padding: 20px;
  }

  .el-card {
    margin-bottom: 20px;
  }

  .btn el-button {
    margin-bottom: 20px;
  }

  .el-pagination {
    float: right;
    margin: 20px;
  }
</style>
